package com.klxedu.ms.gateway.security.authentication.impl;

import com.klxedu.ms.gateway.core.json.BaseJsonObject;
import com.klxedu.ms.gateway.security.client.UserFeignClient;
import com.klxedu.ms.gateway.security.client.service.LoginUser;
import com.klxedu.ms.gateway.utils.SpringBeanUtils;

/**
 * 用户名认证，调用机构用户服务进行认证
 * 
 * @author songhuiqing
 *
 */
public class UserNameAuthenticateAction extends AbstraAuthenticateAction {

	@Override
	BaseJsonObject<LoginUser> getLoginUser(String login) {
		UserFeignClient userFeignClient = SpringBeanUtils.getBean(UserFeignClient.class);
		return userFeignClient.getLoginUserByUserName(login);
	}

}
